//
//  TM_GameLayer.h
//  xGame
//
//  Created by Max on 11-10-26.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@class TM_GameHub;

@interface TM_GameLayer : CCLayer {
    
    CCTMXTiledMap   *_tileMap;
    CCTMXLayer      *_background;
    CCTMXLayer      *_meta;
    CCTMXLayer      *_foreground;
    
    CCSprite        *_player;
    
    int _numCollected;
    TM_GameHub *_hud;
    
    int _mode;
    
    NSMutableArray *_enemies;
    NSMutableArray *_projectiles;
}

@property (nonatomic,retain) CCTMXTiledMap      *tileMap;
@property (nonatomic,retain) CCTMXLayer         *background;
@property (nonatomic,retain) CCTMXLayer         *meta;
@property (nonatomic,retain) CCTMXLayer         *foreground;

@property (nonatomic,retain) CCSprite           *player;

@property (nonatomic, assign) int numCollected;
@property (nonatomic, retain) TM_GameHub *hud;

@property (nonatomic, assign) int mode;

+(CCScene *)scene;

@end
